package ch5;

public class Dog {
	private String name, color;
	public static int legs = 4;// 腿的数目

	public Dog(String name, String color) {
		super();
		this.name = name;
		this.color = color;
	}

	public void show() {
		System.out.println("狗的名字叫" + name + ",毛色是" + color);
		System.out.println(name + "有" + legs + "条腿");

		printFeetNums();
	}

	public static void printFeetNums() {
		System.out.println("狗有" + legs + "条腿");
		// System.out.println("狗叫" + name);
	}
}
